package org.news.web.domain.bo;

import org.news.web.domain.Creators;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 作者业务对象 creators
 *
 * @author Gu Ci
 * @date 2024-03-29
 */
@Data
@AutoMapper(target = Creators.class, reverseConvertGenerate = false)
public class CreatorsBo {

    /**
     * 创作人ID
     */
    @NotNull(message = "创作人ID不能为空", groups = { EditGroup.class })
    private Long creatorId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 称号
     */
    private String title;

    /**
     * 创作人简介或描述
     */
    private String description;

    /**
     * 发布文章数量
     */
    private Long publicationCount;

    /**
     * 粉丝数量
     */
    private Long followersCount;


    /**
     * 个人网站链接
     */
    private String website;

    /**
     * 社交媒体链接
     */
    private String socialMedia;

    /**
     * 联系邮箱
     */
    private String email;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 所在地
     */
    private String location;

    /**
     * 头像图片链接
     */
    private String profileIcture;

    /**
     * 封面图片链接
     */
    private String coverPhoto;

    /**
     * 加入日期
     */
    private Date joinDate;

    /**
     * 最后登录时间
     */
    private Date lastLogin;

    /**
     * 账号状态：活跃或停用
     */
    @NotNull(message = "账号状态：活跃或停用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 记录创建时间
     */
    private Date creationTime;


}
